package chapter6;

import java.util.Arrays;

/**
 * 将数组索引为2的元素替换为“bb”
 */
public class Test6_7_3 {
    public static void main(String[] args) {
        String[] arrStr = {"a","b","c","d"};
        Arrays.fill(arrStr, 1,2,"bb");
        for (String string : arrStr) {
            System.out.print(string + ", ");
        }
    }
}
